How To Train Autoassociative Memory Network